const {
    Mysql
} = require('../tools/utils');
module.exports = async (ctx) => {
    let {
        date
    } = ctx.query;
    let sql = `SELECT * from orderList WHERE create_time REGEXP '^${date}'`
    try {
        let list = await Mysql(sql);
        ctx.state.data = {
            list
        };
    } catch (error) {

    }
}